﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003E9 RID: 1001
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DoGachaScRsp : IMessage<DoGachaScRsp>, IMessage, IEquatable<DoGachaScRsp>, IDeepCloneable<DoGachaScRsp>, IBufferMessage
	{
		// Token: 0x17000CD6 RID: 3286
		// (get) Token: 0x06002CC9 RID: 11465 RVA: 0x0007B9C4 File Offset: 0x00079BC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DoGachaScRsp> Parser
		{
			get
			{
				return DoGachaScRsp._parser;
			}
		}

		// Token: 0x17000CD7 RID: 3287
		// (get) Token: 0x06002CCA RID: 11466 RVA: 0x0007B9CB File Offset: 0x00079BCB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DoGachaScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000CD8 RID: 3288
		// (get) Token: 0x06002CCB RID: 11467 RVA: 0x0007B9DD File Offset: 0x00079BDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DoGachaScRsp.Descriptor;
			}
		}

		// Token: 0x06002CCC RID: 11468 RVA: 0x0007B9E4 File Offset: 0x00079BE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaScRsp()
		{
		}

		// Token: 0x06002CCD RID: 11469 RVA: 0x0007B9F8 File Offset: 0x00079BF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaScRsp(DoGachaScRsp other) : this()
		{
			this.gachaItemList_ = other.gachaItemList_.Clone();
			this.kLKAIDFHBAG_ = other.kLKAIDFHBAG_;
			this.retcode_ = other.retcode_;
			this.gMMLAIMHMMB_ = other.gMMLAIMHMMB_;
			this.gachaId_ = other.gachaId_;
			this.aCKNCEHGNFI_ = other.aCKNCEHGNFI_;
			this.gachaNum_ = other.gachaNum_;
			this.nBKOPNKCFEB_ = other.nBKOPNKCFEB_;
			this.ceilingNum_ = other.ceilingNum_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002CCE RID: 11470 RVA: 0x0007BA8D File Offset: 0x00079C8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaScRsp Clone()
		{
			return new DoGachaScRsp(this);
		}

		// Token: 0x17000CD9 RID: 3289
		// (get) Token: 0x06002CCF RID: 11471 RVA: 0x0007BA95 File Offset: 0x00079C95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<GachaItem> GachaItemList
		{
			get
			{
				return this.gachaItemList_;
			}
		}

		// Token: 0x17000CDA RID: 3290
		// (get) Token: 0x06002CD0 RID: 11472 RVA: 0x0007BA9D File Offset: 0x00079C9D
		// (set) Token: 0x06002CD1 RID: 11473 RVA: 0x0007BAA5 File Offset: 0x00079CA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint KLKAIDFHBAG
		{
			get
			{
				return this.kLKAIDFHBAG_;
			}
			set
			{
				this.kLKAIDFHBAG_ = value;
			}
		}

		// Token: 0x17000CDB RID: 3291
		// (get) Token: 0x06002CD2 RID: 11474 RVA: 0x0007BAAE File Offset: 0x00079CAE
		// (set) Token: 0x06002CD3 RID: 11475 RVA: 0x0007BAB6 File Offset: 0x00079CB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000CDC RID: 3292
		// (get) Token: 0x06002CD4 RID: 11476 RVA: 0x0007BABF File Offset: 0x00079CBF
		// (set) Token: 0x06002CD5 RID: 11477 RVA: 0x0007BAC7 File Offset: 0x00079CC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GMMLAIMHMMB
		{
			get
			{
				return this.gMMLAIMHMMB_;
			}
			set
			{
				this.gMMLAIMHMMB_ = value;
			}
		}

		// Token: 0x17000CDD RID: 3293
		// (get) Token: 0x06002CD6 RID: 11478 RVA: 0x0007BAD0 File Offset: 0x00079CD0
		// (set) Token: 0x06002CD7 RID: 11479 RVA: 0x0007BAD8 File Offset: 0x00079CD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaId
		{
			get
			{
				return this.gachaId_;
			}
			set
			{
				this.gachaId_ = value;
			}
		}

		// Token: 0x17000CDE RID: 3294
		// (get) Token: 0x06002CD8 RID: 11480 RVA: 0x0007BAE1 File Offset: 0x00079CE1
		// (set) Token: 0x06002CD9 RID: 11481 RVA: 0x0007BAE9 File Offset: 0x00079CE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ACKNCEHGNFI
		{
			get
			{
				return this.aCKNCEHGNFI_;
			}
			set
			{
				this.aCKNCEHGNFI_ = value;
			}
		}

		// Token: 0x17000CDF RID: 3295
		// (get) Token: 0x06002CDA RID: 11482 RVA: 0x0007BAF2 File Offset: 0x00079CF2
		// (set) Token: 0x06002CDB RID: 11483 RVA: 0x0007BAFA File Offset: 0x00079CFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaNum
		{
			get
			{
				return this.gachaNum_;
			}
			set
			{
				this.gachaNum_ = value;
			}
		}

		// Token: 0x17000CE0 RID: 3296
		// (get) Token: 0x06002CDC RID: 11484 RVA: 0x0007BB03 File Offset: 0x00079D03
		// (set) Token: 0x06002CDD RID: 11485 RVA: 0x0007BB0B File Offset: 0x00079D0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NBKOPNKCFEB
		{
			get
			{
				return this.nBKOPNKCFEB_;
			}
			set
			{
				this.nBKOPNKCFEB_ = value;
			}
		}

		// Token: 0x17000CE1 RID: 3297
		// (get) Token: 0x06002CDE RID: 11486 RVA: 0x0007BB14 File Offset: 0x00079D14
		// (set) Token: 0x06002CDF RID: 11487 RVA: 0x0007BB1C File Offset: 0x00079D1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CeilingNum
		{
			get
			{
				return this.ceilingNum_;
			}
			set
			{
				this.ceilingNum_ = value;
			}
		}

		// Token: 0x06002CE0 RID: 11488 RVA: 0x0007BB25 File Offset: 0x00079D25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DoGachaScRsp);
		}

		// Token: 0x06002CE1 RID: 11489 RVA: 0x0007BB34 File Offset: 0x00079D34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DoGachaScRsp other)
		{
			return other != null && (other == this || (this.gachaItemList_.Equals(other.gachaItemList_) && this.KLKAIDFHBAG == other.KLKAIDFHBAG && this.Retcode == other.Retcode && this.GMMLAIMHMMB == other.GMMLAIMHMMB && this.GachaId == other.GachaId && this.ACKNCEHGNFI == other.ACKNCEHGNFI && this.GachaNum == other.GachaNum && this.NBKOPNKCFEB == other.NBKOPNKCFEB && this.CeilingNum == other.CeilingNum && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002CE2 RID: 11490 RVA: 0x0007BBF4 File Offset: 0x00079DF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.gachaItemList_.GetHashCode();
			if (this.KLKAIDFHBAG != 0U)
			{
				num ^= this.KLKAIDFHBAG.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.GMMLAIMHMMB != 0U)
			{
				num ^= this.GMMLAIMHMMB.GetHashCode();
			}
			if (this.GachaId != 0U)
			{
				num ^= this.GachaId.GetHashCode();
			}
			if (this.ACKNCEHGNFI != 0U)
			{
				num ^= this.ACKNCEHGNFI.GetHashCode();
			}
			if (this.GachaNum != 0U)
			{
				num ^= this.GachaNum.GetHashCode();
			}
			if (this.NBKOPNKCFEB != 0U)
			{
				num ^= this.NBKOPNKCFEB.GetHashCode();
			}
			if (this.CeilingNum != 0U)
			{
				num ^= this.CeilingNum.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002CE3 RID: 11491 RVA: 0x0007BCF0 File Offset: 0x00079EF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002CE4 RID: 11492 RVA: 0x0007BCF8 File Offset: 0x00079EF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002CE5 RID: 11493 RVA: 0x0007BD04 File Offset: 0x00079F04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ACKNCEHGNFI != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.ACKNCEHGNFI);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.GachaNum != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.GachaNum);
			}
			this.gachaItemList_.WriteTo(ref output, DoGachaScRsp._repeated_gachaItemList_codec);
			if (this.CeilingNum != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.CeilingNum);
			}
			if (this.NBKOPNKCFEB != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.NBKOPNKCFEB);
			}
			if (this.GMMLAIMHMMB != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.GMMLAIMHMMB);
			}
			if (this.GachaId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.GachaId);
			}
			if (this.KLKAIDFHBAG != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.KLKAIDFHBAG);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002CE6 RID: 11494 RVA: 0x0007BE18 File Offset: 0x0007A018
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.gachaItemList_.CalculateSize(DoGachaScRsp._repeated_gachaItemList_codec);
			if (this.KLKAIDFHBAG != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.KLKAIDFHBAG);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.GMMLAIMHMMB != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GMMLAIMHMMB);
			}
			if (this.GachaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaId);
			}
			if (this.ACKNCEHGNFI != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ACKNCEHGNFI);
			}
			if (this.GachaNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaNum);
			}
			if (this.NBKOPNKCFEB != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NBKOPNKCFEB);
			}
			if (this.CeilingNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CeilingNum);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002CE7 RID: 11495 RVA: 0x0007BF14 File Offset: 0x0007A114
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DoGachaScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.gachaItemList_.Add(other.gachaItemList_);
			if (other.KLKAIDFHBAG != 0U)
			{
				this.KLKAIDFHBAG = other.KLKAIDFHBAG;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.GMMLAIMHMMB != 0U)
			{
				this.GMMLAIMHMMB = other.GMMLAIMHMMB;
			}
			if (other.GachaId != 0U)
			{
				this.GachaId = other.GachaId;
			}
			if (other.ACKNCEHGNFI != 0U)
			{
				this.ACKNCEHGNFI = other.ACKNCEHGNFI;
			}
			if (other.GachaNum != 0U)
			{
				this.GachaNum = other.GachaNum;
			}
			if (other.NBKOPNKCFEB != 0U)
			{
				this.NBKOPNKCFEB = other.NBKOPNKCFEB;
			}
			if (other.CeilingNum != 0U)
			{
				this.CeilingNum = other.CeilingNum;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002CE8 RID: 11496 RVA: 0x0007BFED File Offset: 0x0007A1ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002CE9 RID: 11497 RVA: 0x0007BFF8 File Offset: 0x0007A1F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 58U)
				{
					if (num <= 32U)
					{
						if (num == 16U)
						{
							this.ACKNCEHGNFI = input.ReadUInt32();
							continue;
						}
						if (num == 32U)
						{
							this.Retcode = input.ReadUInt32();
							continue;
						}
					}
					else
					{
						if (num == 40U)
						{
							this.GachaNum = input.ReadUInt32();
							continue;
						}
						if (num == 58U)
						{
							this.gachaItemList_.AddEntriesFrom(ref input, DoGachaScRsp._repeated_gachaItemList_codec);
							continue;
						}
					}
				}
				else if (num <= 96U)
				{
					if (num == 88U)
					{
						this.CeilingNum = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.NBKOPNKCFEB = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.GMMLAIMHMMB = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.GachaId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.KLKAIDFHBAG = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040011BE RID: 4542
		private static readonly MessageParser<DoGachaScRsp> _parser = new MessageParser<DoGachaScRsp>(() => new DoGachaScRsp());

		// Token: 0x040011BF RID: 4543
		private UnknownFieldSet _unknownFields;

		// Token: 0x040011C0 RID: 4544
		public const int GachaItemListFieldNumber = 7;

		// Token: 0x040011C1 RID: 4545
		private static readonly FieldCodec<GachaItem> _repeated_gachaItemList_codec = FieldCodec.ForMessage<GachaItem>(58U, GachaItem.Parser);

		// Token: 0x040011C2 RID: 4546
		private readonly RepeatedField<GachaItem> gachaItemList_ = new RepeatedField<GachaItem>();

		// Token: 0x040011C3 RID: 4547
		public const int KLKAIDFHBAGFieldNumber = 15;

		// Token: 0x040011C4 RID: 4548
		private uint kLKAIDFHBAG_;

		// Token: 0x040011C5 RID: 4549
		public const int RetcodeFieldNumber = 4;

		// Token: 0x040011C6 RID: 4550
		private uint retcode_;

		// Token: 0x040011C7 RID: 4551
		public const int GMMLAIMHMMBFieldNumber = 13;

		// Token: 0x040011C8 RID: 4552
		private uint gMMLAIMHMMB_;

		// Token: 0x040011C9 RID: 4553
		public const int GachaIdFieldNumber = 14;

		// Token: 0x040011CA RID: 4554
		private uint gachaId_;

		// Token: 0x040011CB RID: 4555
		public const int ACKNCEHGNFIFieldNumber = 2;

		// Token: 0x040011CC RID: 4556
		private uint aCKNCEHGNFI_;

		// Token: 0x040011CD RID: 4557
		public const int GachaNumFieldNumber = 5;

		// Token: 0x040011CE RID: 4558
		private uint gachaNum_;

		// Token: 0x040011CF RID: 4559
		public const int NBKOPNKCFEBFieldNumber = 12;

		// Token: 0x040011D0 RID: 4560
		private uint nBKOPNKCFEB_;

		// Token: 0x040011D1 RID: 4561
		public const int CeilingNumFieldNumber = 11;

		// Token: 0x040011D2 RID: 4562
		private uint ceilingNum_;
	}
}
